package com.lifeng.jk.service.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lifeng.jk.dao.QingJiaDao;
import com.lifeng.jk.domain.QingJia;
import com.lifeng.jk.service.QingJiaService;

@Service
public class QingJiaServiceImpl implements QingJiaService{
	@Autowired
	private QingJiaDao qingJiaDao;
	
	@Override
	public List<QingJia> find(Map paraMap) {
		return qingJiaDao.find(paraMap);
	}

	@Override
	public QingJia get(Serializable id) {
		return qingJiaDao.get(id);
	}

	@Override
	public void insert(QingJia entity) {
		entity.setId(UUID.randomUUID().toString());	
		qingJiaDao.insert(entity);
	}

	@Override
	public void update(QingJia entity) {
		qingJiaDao.update(entity);
	}

	@Override
	public void deleteById(Serializable id) {
		qingJiaDao.deleteById(id);
	}

	@Override
	public void delete(Serializable[] ids) {
		qingJiaDao.delete(ids);
	}
}
